Skip to content

feat(devnet): Deploy withdrawal output builder#486

Merged
brunomenezes merged 5 commits into
prerelease/v2-alphafrom
feat/devnet-deploy-withdrawal-output-builder
Jun 11, 2026
Merged

feat(devnet): Deploy withdrawal output builder#486
brunomenezes merged 5 commits into
prerelease/v2-alphafrom
feat/devnet-deploy-withdrawal-output-builder

Conversation

@brunomenezes

Copy link
Copy Markdown
Contributor

Summary

This PR introduces a dedicated, deterministic deployment script for UsdWithdrawalOutputBuilder, making it available in the deployment and final anvil state dump (anvil_state.json) deliverables (devnet only, 31337). It will support the usage and testing of emergency withdrawal. Also, to avoid our own inline implementation of its UsdWithdrawalOutputBuilderFactory interface and avoid misalignments with subsequent changes in the rollups-contracts code, the cartesi-rollups-contracts was added as a soldeer dependency so the Factory definition can be used in the script.

PS: In future rollups-contracts releases, this contract will be deployed and available. Therefore, the script will be removed, and only the content from the artifacts will be necessary. Nonetheless, it will be transparent for clients using this package.

What Changed:

  • Add forge script in the build pipeline to deploy UsdWithdrawalOutputBuilder to be included in the deployments and anvil state dump.
  • Removed its own implementation of test tokens. Therefore, only those from rollups-contracts will be part of the distribution. Clients will need to update accordingly (e.g. cartesi-cli address-book)

* Also downgrade @openzeppelin-contracts from 5.5.0 to 5.2.0 to align with version used by cartesi-rollups-contracts.
… the factory.

* refactor: base-deployment-script to use @openzeppelin-contracts version 5.2.0.
@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 090e14c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/devnet Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/devnet/script/DeployUsdWithdrawalOutputBuilder.s.sol Outdated
@github-project-automation github-project-automation Bot moved this from Todo to In progress in Rollups SDK Jun 10, 2026
@brunomenezes brunomenezes requested a review from guidanoli June 11, 2026 10:03
@brunomenezes brunomenezes moved this from In progress to Waiting review in Rollups SDK Jun 11, 2026
@brunomenezes brunomenezes self-assigned this Jun 11, 2026

@endersonmaia endersonmaia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brunomenezes brunomenezes merged commit 35807eb into prerelease/v2-alpha Jun 11, 2026
4 checks passed
@brunomenezes brunomenezes deleted the feat/devnet-deploy-withdrawal-output-builder branch June 11, 2026 15:59
@github-project-automation github-project-automation Bot moved this from Waiting review to Done in Rollups SDK Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants